package com.neu.dao;

import java.util.List;
import java.util.Map;

public interface BussinessDao {
    Map<String,Object> login(String name,String pwd);
    //通过id查询商家
    Map<String ,Object> findById(String id);
    //通过id删除商家
    int deleteBussiness(String id);

    List<Map<String,Object>> findAll();

    List<Map<String,Object>> findByName(String name);

    int addBussiness(String pwd,String name,String address,String explain,
                     String startprice,String deliveryprice);

    int updatePwd(String newPwd,String oldPwd,String id);

    int updateBussiness(String addr,String info,String startPirce,String deliveryprice,String id);
}
